package com.cstar.learnlang.RowMappers;

import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.cstar.learnlang.DataForms.NewVocabularyListDataForm;
import com.cstar.learnlang.DataForms.UserInfoObj;
import java.sql.ResultSet;
import java.sql.SQLException;
 
import org.springframework.jdbc.core.RowMapper;

public class UserInfoObjRowMapper implements RowMapper {
	private static final Logger logger = LoggerFactory.getLogger(UserInfoObj.class);

	@Override
	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		UserInfoObj data = new UserInfoObj();
		data.setRowId(rs.getString("Id"));
		data.setEmail(rs.getString("EMAIL"));
		return data;
	}
}
